package com.mall.model.entity.Oms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 订单明细表
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "订单明细表",description = "")
@TableName("oms_order_item")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OmsOrderItem implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 订单id */
    @Schema(name = "订单id",description = "")
    private Long orderId;
    /** sku id */
    @Schema(name = "sku id",description = "")
    private Long skuId;
    /** 商品id */
    @Schema(name = "商品id",description = "")
    private Long productId;
    /** 购买数量 */
    @Schema(name = "购买数量",description = "")
    private Integer quantity;
    /** 商品单价 */
    @Schema(name = "商品单价",description = "")
    private Double price;
    /** 优惠金额 */
    @Schema(name = "优惠金额",description = "")
    private Double discountAmount;
    /** 实付金额 */
    @Schema(name = "实付金额",description = "")
    private Double realPaid;
}